package com.example.demo.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

public class MsgRecord extends Model<MsgRecord> {


    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    /**
     * 消息节点编号
     */
    private String msgNodeCode;

    /**
     * 消息节点名称
     */
    @TableField(exist=false)
    private String msgNodeName;

    /**
     * 消息标题
     */
    private String msgTitle;

    private String msgStatus;

    /**
     * 收件人用户id
     */
    private Integer receiverUserId;
    @TableField(exist = false)
    private String receiverUser;

    /**
     * 发送人用户id
     */
    private Integer senderUserId;

    /**
     * 发送人组织id
     */
    private Integer senderOrgId;

    /**
     * 0-站内消息,1-短信,2-邮件,3-代办,4-经办,5-协办
     */
    private String type;

    /**
     * 业务CODE，待办专用
     */
    private String businessCode;

    /**
     * 业务id，待办专用
     */
    private Integer businessId;

    /**
     * 待办快捷链接，待办专用
     */
    private String todoUrl;

    private String isRead;

    private String isNotice;

    private String mobile;

    private String email;

    private String isDeleted;

    private Integer ownerUserId;

    private Date createTime;

    private Integer createUserId;

    private Date updateTime;

    private Integer updateUserId;

    /**
     * 消息内容
     */
    private String msgContent;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public String getMsgNodeCode() {
        return msgNodeCode;
    }

    public void setMsgNodeCode(String msgNodeCode) {
        this.msgNodeCode = msgNodeCode;
    }

    public String getMsgNodeName() {
        return msgNodeName;
    }

    public void setMsgNodeName(String msgNodeName) {
        this.msgNodeName = msgNodeName;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getMsgTitle() {
        return msgTitle;
    }

    public void setMsgTitle(String msgTitle) {
        this.msgTitle = msgTitle;
    }

    public Integer getReceiverUserId() {
        return receiverUserId;
    }

    public void setReceiverUserId(Integer receiverUserId) {
        this.receiverUserId = receiverUserId;
    }

    public String getReceiverUser() {
        return receiverUser;
    }

    public void setReceiverUser(String receiverUser) {
        this.receiverUser = receiverUser;
    }

    public Integer getSenderUserId() {
        return senderUserId;
    }

    public void setSenderUserId(Integer senderUserId) {
        this.senderUserId = senderUserId;
    }

    public Integer getSenderOrgId() {
        return senderOrgId;
    }

    public void setSenderOrgId(Integer senderOrgId) {
        this.senderOrgId = senderOrgId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTodoUrl() {
        return todoUrl;
    }

    public void setTodoUrl(String todoUrl) {
        this.todoUrl = todoUrl;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getIsNotice() {
        return isNotice;
    }

    public void setIsNotice(String isNotice) {
        this.isNotice = isNotice;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getOwnerUserId() {
        return ownerUserId;
    }

    public void setOwnerUserId(Integer ownerUserId) {
        this.ownerUserId = ownerUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public String getMsgStatus() {
        return msgStatus;
    }

    public void setMsgStatus(String msgStatus) {
        this.msgStatus = msgStatus;
    }
}